aboutsummaryrefslogtreecommitdiff
path: root/src/app/kdrama/[id]/buttons.jsx
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-04-12 11:39:57 +0530
committerreal-zephex <[email protected]>2024-04-12 11:39:57 +0530
commitf6ecf3a393ba50bb74ce83ad2bc723e2670f7215 (patch)
tree676f00108119d29253ffe0b658c62575788199e4 /src/app/kdrama/[id]/buttons.jsx
parentfix: fixed kdrama page and made it available (diff)
downloaddramalama-f6ecf3a393ba50bb74ce83ad2bc723e2670f7215.tar.xz
dramalama-f6ecf3a393ba50bb74ce83ad2bc723e2670f7215.zip
minor fixes
Diffstat (limited to 'src/app/kdrama/[id]/buttons.jsx')
-rw-r--r--src/app/kdrama/[id]/buttons.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/app/kdrama/[id]/buttons.jsx b/src/app/kdrama/[id]/buttons.jsx
index c41c32f..a7d0f60 100644
--- a/src/app/kdrama/[id]/buttons.jsx
+++ b/src/app/kdrama/[id]/buttons.jsx
@@ -46,9 +46,11 @@ export default function EpisodesButtons({ data: episodeData, id: dramaId }) {
episodeData.map((item, index) => (
<button
key={index}
- onClick={() =>
- test(item.id, dramaId, item.title)
- }
+ onClick={(event) => {
+ test(item.id, dramaId, item.title);
+ event.target.style.backgroundColor =
+ "var(--soft-purple)";
+ }}
>
{item.title}
</button>